﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CutAways.Modeling
{
	[Serializable]
	public class Material
	{
		private string name;
		private float[] ambient;
		private float[] diffuse;
		private float[] specular;
		private float[] emmissive;
		private float shininess;
		private float alpha;
		private int textureIndex;
	
		public string Name
		{
			get { return name; }
			set { name = value; }
		}
		public float[] Ambient
		{
			get { return ambient; }
			set { ambient = value; }
		}
		public float[] Diffuse
		{
			get { return diffuse; }
			set { diffuse = value; }
		}
		public float[] Specular
		{
			get { return specular; }
			set { specular = value; }
		}
		public float[] Emmissive
		{
			get { return emmissive; }
			set { emmissive = value; }
		}
		public float Shininess
		{
			get { return shininess; }
			set { shininess = value; }
		}
		public float Alpha
		{
			get { return alpha; }
			set { alpha = value; }
		}
		public int TextureIndex
		{
			get { return textureIndex; }
			set { textureIndex = value; }
		}
		
		public Material()
		{
			name = "";
			ambient = new float[4];
			diffuse = new float[4];
			specular = new float[4];
			emmissive = new float[4];
			shininess = 0f;
			alpha = 1f;
			textureIndex = -1;
		}

        public override string ToString()
        {
            return name;
        }
	}
}
